<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="style.css">
</head>
<?php
$user = isset($_POST['name'])?$_POST['name'] : '';
$pass = isset($_POST['pass'])?$_POST['pass'] : '';
echo $user.":".$pass;
if($pass=="admin" && $user == "admin"){
	session_start();
	$_SESSION['name'] = $user;
	$_SESSION['time'] = time();
	echo '<script>location.href="./admin.php"</script>';
} else {
	$login = false;
}
?>
<body>
    <div class="body">
        <div class="header">Admin
        </div>
        <div class="content">
        <form method="post" action="#">
            <ul>
                <li>User Name : <input type="text" name="name" id="name" ></li>
            </ul>
            <ul>
                <li>Password : <input type="password" name="pass" id="pass" ></li>
            </ul>
            <ul>
                <li><input type="submit" style="margin-right:50px;" value="Login"><input type="button" value="Cancel"></li>
            </ul>

        </form>
        </div>
        <div class="footer">
        </div>
    </div>
</body>
<script>
</script>
</html>